|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.physicalevents.JoystickEvent
public class JoystickEvent
Class that stores values on a joystick Event.
| Field Summary | |
|---|---|
private float |
angle
|
private short[] |
center
|
private float |
magnitude
|
private short[] |
max
|
private short[] |
min
|
| Constructor Summary | |
|---|---|
JoystickEvent(int id,
float angle,
float magnitude,
short max1,
short max2,
short min1,
short min2,
short center1,
short center2)
Constructor of a JoystickEvent. |
|
| Method Summary | |
|---|---|
float |
getAngle()
Get angle the joystick is being held. |
short[] |
getCenter()
Center joystick values. |
float |
getMagnitude()
Get magnitude of the joystick (range 0-1). |
short[] |
getMax()
Maximum joystick values. |
short[] |
getMin()
Minimum joystick values. |
java.lang.String |
toString()
|
| Methods inherited from class wiiusej.wiiusejevents.GenericEvent |
|---|
getWiimoteId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private float angle
private float magnitude
private short[] max
private short[] min
private short[] center
| Constructor Detail |
|---|
public JoystickEvent(int id,
float angle,
float magnitude,
short max1,
short max2,
short min1,
short min2,
short center1,
short center2)
id - id of the wiimote connected.angle - angle the joystick is being held.magnitude - magnitude of the joystick (range 0-1).max1 - maximum joystick value 1.max2 - maximum joystick value 2.min1 - minimum joystick value 1.min2 - minimum joystick value 2.center1 - center joystick value 1.center2 - center joystick value 2.| Method Detail |
|---|
public float getAngle()
public float getMagnitude()
public short[] getMax()
public short[] getMin()
public short[] getCenter()
public java.lang.String toString()
toString in class GenericEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||